package com.liudadan.aop_04;

import com.liudadan.aop_04.impl.Calculator;
import org.springframework.stereotype.Service;

@Service
public class CalculatorImpl implements Calculator {
    @Override
    public int add(int i, int j) {
        int count = 0;
        for (int i1 = 0; i1 < 1000; i1++) {
            count++;
        }
        int result = i + j;
        return result;
    }

    @Override
    public int sub(int i, int j) {
        int result = i - j;
        return result;
    }

    @Override
    public int mul(int i, int j) {
        int result = i * j;
        return result;
    }

    @Override
    public int div(int i, int j) {
        int result = i / j;
        return result;
    }

}
